package com.example.parking.entity;

import cn.hutool.core.date.DateTime;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("stop_order")
public class Order {
    @TableId(value = "order_id",type = IdType.ASSIGN_ID)
    @ExcelProperty("订单编号")
    private Long orderId;

    @ExcelProperty("车位编号")
    private Integer garageId;

    @ExcelProperty("用户编号")
    private Integer userId;

    @ExcelProperty("用户名")
    private String username;

    @ExcelProperty("手机号")
    private String phone;

    @ExcelProperty("车牌号")
    private String carNum;

    @ExcelProperty("车位位置")
    private String location;

    @ExcelProperty("缴费金额")
    private BigDecimal amount;

    @ExcelProperty("开始时间")
    private String beginTime;

    @ExcelProperty("结束时间")
    private String endTime;

    @ExcelIgnore
    private Integer state;
}
